Optimal. Leaf size=119 \[ \frac {(b+2 c x) \sqrt {a x^2+b x^3+c x^4}}{4 c x}-\frac {\left (b^2-4 a c\right ) x \sqrt {a+b x+c x^2} \tanh ^{-1}\left (\frac {b+2 c x}{2 \sqrt {c} \sqrt {a+b x+c x^2}}\right )}{8 c^{3/2} \sqrt {a x^2+b x^3+c x^4}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.05, antiderivative size = 119, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 4, integrand size = 24, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.167, Rules used = {1932, 1928,
635, 212} \begin {gather*} \frac {(b+2 c x) \sqrt {a x^2+b x^3+c x^4}}{4 c x}-\frac {x \left (b^2-4 a c\right ) \sqrt {a+b x+c x^2} \tanh ^{-1}\left (\frac {b+2 c x}{2 \sqrt {c} \sqrt {a+b x+c x^2}}\right )}{8 c^{3/2} \sqrt {a x^2+b x^3+c x^4}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 212
Rule 635
Rule 1928
Rule 1932
Rubi steps
\begin {align*} \int \frac {\sqrt {a x^2+b x^3+c x^4}}{x} \, dx &=\frac {(b+2 c x) \sqrt {a x^2+b x^3+c x^4}}{4 c x}-\frac {\left (b^2-4 a c\right ) \int \frac {x}{\sqrt {a x^2+b x^3+c x^4}} \, dx}{8 c}\\ &=\frac {(b+2 c x) \sqrt {a x^2+b x^3+c x^4}}{4 c x}-\frac {\left (\left (b^2-4 a c\right ) x \sqrt {a+b x+c x^2}\right ) \int \frac {1}{\sqrt {a+b x+c x^2}} \, dx}{8 c \sqrt {a x^2+b x^3+c x^4}}\\ &=\frac {(b+2 c x) \sqrt {a x^2+b x^3+c x^4}}{4 c x}-\frac {\left (\left (b^2-4 a c\right ) x \sqrt {a+b x+c x^2}\right ) \text {Subst}\left (\int \frac {1}{4 c-x^2} \, dx,x,\frac {b+2 c x}{\sqrt {a+b x+c x^2}}\right )}{4 c \sqrt {a x^2+b x^3+c x^4}}\\ &=\frac {(b+2 c x) \sqrt {a x^2+b x^3+c x^4}}{4 c x}-\frac {\left (b^2-4 a c\right ) x \sqrt {a+b x+c x^2} \tanh ^{-1}\left (\frac {b+2 c x}{2 \sqrt {c} \sqrt {a+b x+c x^2}}\right )}{8 c^{3/2} \sqrt {a x^2+b x^3+c x^4}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.19, size = 101, normalized size = 0.85 \begin {gather*} \frac {x \left (2 \sqrt {c} (b+2 c x) (a+x (b+c x))+\left (b^2-4 a c\right ) \sqrt {a+x (b+c x)} \log \left (c \left (b+2 c x-2 \sqrt {c} \sqrt {a+x (b+c x)}\right )\right )\right )}{8 c^{3/2} \sqrt {x^2 (a+x (b+c x))}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.03, size = 146, normalized size = 1.23
method | result | size |
risch | \(\frac {\left (2 c x +b \right ) \sqrt {x^{2} \left (c \,x^{2}+b x +a \right )}}{4 c x}+\frac {\left (\frac {\ln \left (\frac {\frac {b}{2}+c x}{\sqrt {c}}+\sqrt {c \,x^{2}+b x +a}\right ) a}{2 \sqrt {c}}-\frac {\ln \left (\frac {\frac {b}{2}+c x}{\sqrt {c}}+\sqrt {c \,x^{2}+b x +a}\right ) b^{2}}{8 c^{\frac {3}{2}}}\right ) \sqrt {x^{2} \left (c \,x^{2}+b x +a \right )}}{x \sqrt {c \,x^{2}+b x +a}}\) | \(129\) |
default | \(\frac {\sqrt {c \,x^{4}+b \,x^{3}+a \,x^{2}}\, \left (4 c^{\frac {5}{2}} \sqrt {c \,x^{2}+b x +a}\, x +2 c^{\frac {3}{2}} \sqrt {c \,x^{2}+b x +a}\, b +4 \ln \left (\frac {2 \sqrt {c \,x^{2}+b x +a}\, \sqrt {c}+2 c x +b}{2 \sqrt {c}}\right ) a \,c^{2}-\ln \left (\frac {2 \sqrt {c \,x^{2}+b x +a}\, \sqrt {c}+2 c x +b}{2 \sqrt {c}}\right ) b^{2} c \right )}{8 c^{\frac {5}{2}} \sqrt {c \,x^{2}+b x +a}\, x}\) | \(146\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.36, size = 220, normalized size = 1.85 \begin {gather*} \left [-\frac {{\left (b^{2} - 4 \, a c\right )} \sqrt {c} x \log \left (-\frac {8 \, c^{2} x^{3} + 8 \, b c x^{2} + 4 \, \sqrt {c x^{4} + b x^{3} + a x^{2}} {\left (2 \, c x + b\right )} \sqrt {c} + {\left (b^{2} + 4 \, a c\right )} x}{x}\right ) - 4 \, \sqrt {c x^{4} + b x^{3} + a x^{2}} {\left (2 \, c^{2} x + b c\right )}}{16 \, c^{2} x}, \frac {{\left (b^{2} - 4 \, a c\right )} \sqrt {-c} x \arctan \left (\frac {\sqrt {c x^{4} + b x^{3} + a x^{2}} {\left (2 \, c x + b\right )} \sqrt {-c}}{2 \, {\left (c^{2} x^{3} + b c x^{2} + a c x\right )}}\right ) + 2 \, \sqrt {c x^{4} + b x^{3} + a x^{2}} {\left (2 \, c^{2} x + b c\right )}}{8 \, c^{2} x}\right ] \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\sqrt {x^{2} \left (a + b x + c x^{2}\right )}}{x}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 6.29, size = 125, normalized size = 1.05 \begin {gather*} \frac {1}{8} \, {\left (2 \, \sqrt {c x^{2} + b x + a} {\left (2 \, x + \frac {b}{c}\right )} + \frac {{\left (b^{2} - 4 \, a c\right )} \log \left ({\left | -2 \, {\left (\sqrt {c} x - \sqrt {c x^{2} + b x + a}\right )} \sqrt {c} - b \right |}\right )}{c^{\frac {3}{2}}}\right )} \mathrm {sgn}\left (x\right ) - \frac {{\left (b^{2} \log \left ({\left | -b + 2 \, \sqrt {a} \sqrt {c} \right |}\right ) - 4 \, a c \log \left ({\left | -b + 2 \, \sqrt {a} \sqrt {c} \right |}\right ) + 2 \, \sqrt {a} b \sqrt {c}\right )} \mathrm {sgn}\left (x\right )}{8 \, c^{\frac {3}{2}}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {\sqrt {c\,x^4+b\,x^3+a\,x^2}}{x} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________